<h1>Users List</h1>

<table>
  <thead>
    <tr>
      <th>Id user</th>
      <th>User name</th>
      <th>Pws</th>
      <th>Nume</th>
      <th>Prenume</th>
      <th>Adresa</th>
      <th>Email</th>
      <th>Telefon</th>
      <th>Id tip</th>
      <th>News letter</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($users as $user): ?>
    <tr>
      <td><a href="<?php echo url_for('user/show?id_user='.$user->getIdUser()) ?>"><?php echo $user->getIdUser() ?></a></td>
      <td><?php echo $user->getUserName() ?></td>
      <td><?php echo $user->getPws() ?></td>
      <td><?php echo $user->getNume() ?></td>
      <td><?php echo $user->getPrenume() ?></td>
      <td><?php echo $user->getAdresa() ?></td>
      <td><?php echo $user->getEmail() ?></td>
      <td><?php echo $user->getTelefon() ?></td>
      <td><?php echo $user->getIdTip() ?></td>
      <td><?php echo $user->getNewsLetter() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('user/new') ?>">New</a>
 
